from audioop import add
from osgeo import ogr

outRing = ogr.Geometry(ogr.wkbLinearRing)
outRing.AddPoint(119.5,35)
outRing.AddPoint(119.5,35.5)
outRing.AddPoint(120,35.5)
outRing.CloseRings()

innerRing = ogr.Geometry(ogr.wkbLinearRing)
innerRing.AddPoint(119.6,35.1)
innerRing.AddPoint(119.6,35.4)
innerRing.AddPoint(119.9,35.4)
innerRing.CloseRings()

polygon = ogr.Geometry(ogr.wkbPolygon)
polygon.AddGeometry(outRing)
polygon.AddGeometry(innerRing)
print(polygon)